package cn.vivi.design.mediator;

public class Client {

    public static void main(String[] args) {
        MediatorStructure mediator = new MediatorStructure();

        Tenant tenant = new Tenant("张三", mediator);
        HouseOwner owner = new HouseOwner("李四", mediator);

        mediator.setTenant(tenant);
        mediator.setHouseOwner(owner);

        tenant.constact("租房子");
        owner.constact("好的");
    }

}

